package com.gjy.design.responsibility.r1;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-11 11:06:53
 */
public class ConcreteHandlerA extends AbstractHandler {
    @Override
    public void handleRequest(String request) {
        if (request.equals("A")) {
            System.out.println("HandlerA 处理了请求: " + request);
        } else {
            super.handleRequest(request); // 传递给下一个处理者
        }
    }

}